package main

import (
	"work/config"
	"work/mapper"

	"github.com/gin-gonic/gin"
)

func main() {
	router := gin.Default()
	router.Use(config.Cors())
	gin.SetMode(gin.ReleaseMode)
	test := router.Group("/hls")
	{
		test.POST("/create", mapper.Asset{}.Create)
		test.GET("/query", mapper.Asset{}.Query)
		test.GET("/transfer", mapper.Asset{}.Transfer)
	}
	router.Run(":9000")
}
